import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as echarts from 'echarts'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import App from './App.vue'
import router from './router'
import globalComponents from './components/index.js'
import '@/styles/theme.scss' // 引入初始化样式文件

import './mock'

const app = createApp(App)

app.use(createPinia())
app.use(ElementPlus, { locale: zhCn })
app.use(router)
app.use(globalComponents)
// 全局引用echarts
app.config.globalProperties.$echarts = echarts
app.mount('#app')
